package com.zhongyouyun.admin.service.imp;

import com.zhongyouyun.admin.model.DictionaryDetailedModel;
import com.zhongyouyun.admin.mapper.DictionaryDetailedMapper;
import com.zhongyouyun.admin.service.DictionaryDetailedService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;

/**
 * @Author: shenyi
 * @Date: 2023-02-01
 * @Description: 服务实现类
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class DictionaryDetailedServiceImpl extends ServiceImpl<DictionaryDetailedMapper, DictionaryDetailedModel> implements DictionaryDetailedService {
        /*
         * @Author: shenyi
         * @Date: 2021-09-08
         * @Description: 分页查询
         * @param page 分页数据  lambdaQueryWrapper where 条件 和排序
         */
        @Override
        public IPage<DictionaryDetailedModel> selectPage(Page<DictionaryDetailedModel> page, QueryWrapper<DictionaryDetailedModel> queryWrapper) {
          return this.baseMapper.selectPage(page,queryWrapper);
        }


        /*
         * @Author: shenyi
         * @Date: 2021-09-08
         * @Description: 查询全部
         * @param   lambdaQueryWrapper where 条件 和排序
         */
        @Override
        public List<DictionaryDetailedModel> selectList(QueryWrapper<DictionaryDetailedModel> queryWrapper) {
          return this.baseMapper.selectList(queryWrapper);
        }
}
